{% extends "base.html" %}
{% block title %}登陆{% endblock %}
{% block content %}
<head>
    <script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=YOUR APPKEY" type="text/javascript" charset="utf-8"></script>
</head>
    <h1>登陆</h1>

    <div class="social" >
        <ul>第三方登陆</ul>
        <ul>
            <li>
                <a href="{% url "social:begin" "weibo" %}">
                    <wb:login-button type="3,2" onlogin="login" onlogout="logout">
                        登录按钮
                    </wb:login-button>
                </a>
            </li>

            <li class="facebook"><a href="{% url "social:begin" "facebook" %}">Sign in with Facebook</a></li>

        </ul>
    </div>

    <p>Please, use the following form to log-in:</p>
    <form action="." method="post">
        {{ form.as_p }}
        <p><input type="submit" value="登陆"></p>
            {% csrf_token %}

    </form>
{% endblock %}